package Mangos::DB::Mangos::SpellArea;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'spell_area',

    columns => 
    [
        spell              => { type => 'integer', not_null => 1 },
        area               => { type => 'integer', not_null => 1 },
        quest_start        => { type => 'integer', not_null => 1 },
        quest_start_active => { type => 'integer', not_null => 1 },
        quest_end          => { type => 'integer', default => '0', not_null => 1 },
        aura_spell         => { type => 'integer', not_null => 1 },
        racemask           => { type => 'integer', not_null => 1 },
        gender             => { type => 'integer', not_null => 1 },
        autocast           => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'spell', 'area', 'quest_start', 'quest_start_active', 'aura_spell', 'racemask', 'gender' ],
);

1;

package Mangos::DB::Mangos::SpellArea::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::SpellArea' }

__PACKAGE__->make_manager_methods('spell_area');

1;
